import { createBrowserRouter } from 'react-router-dom'
import React from 'react'
const Home = React.lazy(() => import('../pages/Home'))
const Login = React.lazy(() => import('../pages/Login'))
const NotFound = React.lazy(() => import('../pages/404'))
const router = createBrowserRouter([
  {
    path: '/',
    element: <Home></Home>,
  },
  {
    path: '/Login',
    element: <Login />,
  },
  {
    path: '*',
    element: <NotFound />,
  },
])
export default router
